//
//  TextAlertView.m
//  States and Capitals
//
//  Created by Ward Fred on 5/17/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import "TextAlertView.h"

@implementation TextAlertView
-(void)dismissWithClickedButtonIndex:(NSInteger)buttonIndex animated:(BOOL)animated {
	if (buttonIndex>0)
		return;
	NSArray *subV = self.subviews;
	
	for(UIView *view in subV){ //make sure no keyboard is up before the view is dismissed!
			if([view canResignFirstResponder])
			   [view resignFirstResponder];
	}
	[super dismissWithClickedButtonIndex:buttonIndex animated:animated];
}
	
@end
